<?php
namespace app\backend\widget;

use app\backend\model\AuthNode;
use think\Controller;

class Layout extends Controller {

    public function menu()
    {
        return $this->fetch('widget/menu', [
            'menus' => AuthNode::getNodeMenuTree()
        ]);
    }
}